<%-- 
    Document   : GGHN_chitiet
    Created on : Oct 10, 2011, 3:21:33 AM
    Author     : lethong
--%>

<%@page import="model.pojo.mathangPOJO"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.text.DecimalFormat"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    DecimalFormat myFormatter = new DecimalFormat("###,###");
    mathangPOJO mh = (mathangPOJO) request.getAttribute("Mathang");
    float tietkiem = (mh.getGiathuc() - mh.getGiakhuyenmai());
    float tyle = (tietkiem * 100) / mh.getGiathuc();
%>
<div class="contentGroup clearfix">   
    <div class="sttProd">01</div>
    <div class="titleProd">
        <span class="city">TP.HỒ CHÍ MINH: </span><span class="nameProd"><%=mh.getTenmathang()%></span><br /> 
        <span class="content_tomtat"><%=mh.getNoidung()%></span></div>
    <div class="contentProd clearfix">
        <div class="contentProdLeft">
            <div class="contentPrice">
                <div class=" Prices clearfix">
                    <span class="Price_left">
                        <span class="titlePrice">Giá trị:</span><br />
                        <span class="valuePrice" style=" text-decoration:line-through"><%=myFormatter.format(mh.getGiathuc())%><sup>vnđ</sup></span>
                    </span>
                    <span class="Price_right">
                        <span class="titlePrice">Tiết kiệm:</span><br />
                        <span class="valuePrice"><%=myFormatter.format(tietkiem)%><sup>vnđ</sup></span>
                    </span>
                </div>
                <a href="#" class="price_Buy">
                    <span class="Price_Giaban">Giá bán:</span>
                    <span class="valuePrice_Giaban"><%=myFormatter.format(mh.getGiakhuyenmai())%></span><span class="donvi">vnđ</span>
                    <span class="btnBuy"> MUA</span>
                </a>
                <div class="support">Hỗ trợ mua hàng:<br />
                    0907868240 - 08.39575177</div>
                <div class="gifbox"><a href="#">Mua tặng bạn, người thân!</a></div>
            </div>
            <div class="time">
                <div class="titleTime">Thời gian còn lại!</div>
                <div class="timeCountDown" id="time"></div>
                <%
                    String date = String.valueOf(mh.getNgayketthuc());
                    String year = date.substring(0, 4);
                    String month = date.substring(5, 7);
                    String day = date.substring(8);
                %>
                <script>
                    countdown(<%=year%>,<%=Integer.parseInt(month) - 1%>,<%=day%>,'.timeCountDown');
                </script>
            </div>
            <div class="share">
                <span class="titleSharing">Chia sẻ qua:</span>
                <span></span>

                <span class="FB">

                </span>
            </div>
        </div>
        <div class="contentProdRight">
            <span class="promotion"><span class="percent"><%=myFormatter.format(tyle)%>%</span></span>
            <div id="slide_prod">
                <ul class="aviaslider" id="frontpage-slider">
                    <li><a href="Images/slides/1.jpg" title="" ><img src="Images/slides/1.jpg" alt="" /></a></li>
                    <li><a href="Images/slides/2.jpg" title=""><img src="Images/slides/2.jpg" alt="" /></a></li>
                    <li><a href="Images/slides/3.jpg" title=""><img src="Images/slides/3.jpg" alt="" /></a></li>
                    <li><a href="Images/slides/4.jpg" title=""><img src="Images/slides/4.jpg" alt="" /></a></li>
                </ul>
            </div>
            <div class="proddes clearfix">
                <div>
                    <span class="titleProddes">ĐIỂM NỔI BẬT</span>
                    <span class="content_proddes">
                        <%=mh.getDiemnoibat()%>
                    </span>
                </div>
                <div>
                    <span class="titleProddes">ĐIỀU KIỆN</span>
                    <span class="content_proddes">
                        <%=mh.getDieukien()%>
                    </span>
                </div>
            </div>

        </div>
    </div>
</div>
<div class="titleArticle">THÔNG TIN CHI TIẾT</div>
<div><%=mh.getThongtinchitiet()%></div>
<script type="text/javascript">$.scrollTo($('div.titleArticle'), {duration:'slow', easing:'easeOutCubic'});</script>
